<?php
include_once('common/header.php');
$intProvince 	= $objRequest->getParam('province', 0);
$intPage 		= $objRequest->getParam('page', 1);
$intLimit 		= PLACES_LIMIT;
$intOffset 		= ($intPage-1)*$intLimit;
$intTotal 		= 0;
$objPlace 		= new Place();
$arrPlaces 		= $objPlace->getAll(0, 0, $intProvince, 1, $intOffset, $intLimit, $intTotal);
$objCommon		= new Vfriend_Common();
$this->view->arrProvince	= $objCommon->getProvince();
$this->view->places			= $arrPlaces;
$this->view->intProvince 	= $intProvince;
$this->view->intTotal 		= $intTotal;
$this->view->intOffset 		= $intOffset;
$this->view->strUrl 		= Vfriend_Function::getUrl();
$this->view->intLimit 		= $intLimit;		
?>
